spring interview questions and answers for experienced in java
spring interview questions and answers for experienced in java
Read about spring interview questions and answers for experienced in java, The latest news, videos, and discussion topics about spring interview questions and answers for experienced in java from alibabacloud.com
, the following about the IOC description error in the spring feature is ()A,ioc means that the relationship between programs is manipulated directly by the program code.B, the so-called "control reversal" refers to the transfer of control from the application code to the external container, that is, the control rightC,IOC the responsibility of controlling the creation into the framework, separating from the application codeD, when using the spring IOC container, only the objects required by the
"). Append ("World"). Append ("I love You");
This time S has more than one string to splice, it is supposed to be a number of objects generated, but the JVM will be an optimization, that is, only create an object, at this time it executes faster than the stringbuffer stitching. Look at this:
String s2 = "Hello"; String s3 = "World"; String S4 = "I love You"; String S1 = s2 + s3 + S4;
In this case, three more objects are created, resulting in a waste of memory space.
load Java extension libraries. The implementation of the Java virtual machine provides an extension library directory. The class loader finds and loads Java classes in this directory.3. Systems Class Loader (System class loader): It loads Java classes based on the Java appl
Concise answers to several java interview questions, concise java interview questions
The difference between equal and = in java:
The equal method is used to compare object references unless it is overwritten (such as String class
Java Multithreading and Concurrency basics interview questions and AnswersOriginal link: http://ifeve.com/java-multi-threading-concurrency-interview-questions-with-answers/Multithreading and concurrency issues are among the questions
is used for medium-sized and large-scale data applications. The serial collector is sufficient for most small applications, which require about 100M of memory on modern processors.41. In Java, when can objects be garbage collected?This object can be recycled when the object becomes inaccessible to applications that currently use the object.Is there a garbage collection in the permanent generation of 42.JVM?Garbage collection does not occur in a perma
The Java Collection framework is the foundation of the Java programming language and is an important knowledge point in the Java interview. Here, I've listed some important questions and answers about the Java collection.What is a
having to consider which instance of the subclass is returned.Proxy Mode: provides a proxy object for an object and controls the reference of the original object by the proxy object. In actual development, according to the different purposes, the agent can be divided into: Remote agent, virtual agent, protection agent, cache agent, firewall agent, synchronous agent, intelligent reference Agent.Adapter Mode: transforms the interface of a class into another interface that the client expects, so t
problem is if the elements in the collection, this will bring some errors, some unpredictable errors, So it is forbidden to do so in collection.29th, when an object is passed as a parameter to a method, this method can change the properties of the object and return the changed result, so is this a value pass or a reference pass?Reference passing, there is no doubt that object passing can only be a reference. You can change the content of the reference, but not change the reference itself.30th,
("Too big, a little bit smaller");}else{System.out.println ("Congratulations on your guess right");Break}System.out.println ("remaining" + (10-A) + "Second Chance");}while (true);}} 4. use a double loop to print all the primes between the 2~200. public class Text {public static void Main (string[] args) {for (int i = 2; i Boolean A = true;for (int j = 3; J if (i%j==0) {A = false;Break}}if (a) {System.out.println (i);}}}}
An int array is known to arr = {12,4,22,11,24,9}, finding the ma
equalsignorecase that can be used to ignore case comparisons."ABC"; "abc"; String ("abc"); System.out.println (//true System.out.println (//false System.out.println (//true 12. What is a string pool?As the name implies, a string constant pool is used to store strings. It exists in the Java heap memory.Explains how a string pool exists in Java heap space and when we use different ways to cr
Question one: What do you want the work environment to be like?Standard answer: I am not demanding on the environment, I will try to adapt to the environment.Note: This is a question of whether you are testing your job search mentality, whether you are centered on yourself or on the job.Question two: What shortcomings do you think you have?Standard answer: Say some of the small shortcomings of this position, or say that their "shortcomings" is no work experience.Note: This problem is very sinist
Interview Questions and answers for 40 Java sets and 40 Java Sets
Provided by Beijing shangxuetang
1. JavaWhat is a collection framework? What are the advantages of a collection framework?
Each programming language has a set. The original Java version contains several collec
115 Java Interview Questions and answers-ultimate list (I), 115 java
This article will discuss various types of interview questions in Java interviews, which allow employers to test candidate's
Regular Interview Questions and answers by a ribaba Java engineer, Baba java
1. Implementation of Spring AOP and IOC
Http://blog.csdn.net/tarena_lixy/article/details/7096114
Http://blog.csdn.net/kiss_vicente/article/details/6901295
Http://blog.csdn.net/it_man/article/details/4402245
2. Distributed message queue and dis
difference between a green thread and a local thread in Java?
2) What is the difference between threads and processes?
3) What is context switching in multi-threading?
4) What is the difference between a deadlock and a live lock, the difference between a deadlock and a pie?
5) What is the thread scheduling algorithm used in Java?
6) What is thread scheduling in
115 Java Interview Questions and answers-ultimate list (I), 115 java
Object-Oriented Programming (OOP)
Java is a computer programming language that supports concurrency, class-based, and object-oriented. The advantages of object-oriented software development are listed bel
threadlocal, Blocking Queue, counting semaphore and concurrenthashmap are more prevalent.
15 Java Multi-threaded face questions and answers
1 Now there are T1, T2, T3 three threads, how do you ensure that T2 after T1 execution, T3 after the implementation of T2 execution?
This threading problem is usually asked in the first round or during the phone interview
the interview-based, not the actual application-based Java threading problem.A few additional questions to add:1) What is the difference between a green thread and a local thread in Java?2) What is the difference between threads and processes?3) What is context switching in multi-threading?4) What is the difference between a deadlock and a live lock, the differe
applications. The serial collector is sufficient for most small applications, which require about 100M of memory on modern processors.41. In Java, when can objects be garbage collected?This object can be recycled when the object becomes inaccessible to applications that currently use the object.Is there a garbage collection in the permanent generation of 42.JVM?Garbage collection does not occur in a permanent generation, and if it is permanently full
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.